#
import os

from app.core.config import settings


def watermark_video_path(video_path):
    if video_path.startswith('http://') or video_path.startswith('https://'):
        video_path = video_path.split('/')[-1]

    return os.path.join(settings.TEMP_DIR, f'{os.path.splitext(os.path.basename(video_path))[0]}_watermark.mp4')
